﻿using System.IO;
using Volo.Abp.Content;

namespace Thinker.SignChannel.Excels;

public class RemoteContentCreator
{
    public const string ExcelContentType =
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

    public static RemoteStreamContent CreateExcel(Stream stream, string fileName)
    {
        stream.Seek(0, SeekOrigin.Begin);
        return new RemoteStreamContent(stream, fileName, ExcelContentType);
    }
}